package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangyang
 * @since 2021-10-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_detail")
public class Detail extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 订单明细id
     */
    @TableId(value = "pk_detailId", type = IdType.AUTO)
    private Integer detailId;

    /**
     * 商品名
     */
    @TableField("d_name")
    private String name;

    /**
     * 商品数量
     */
    @TableField("d_num")
    private Integer num;

    /**
     * 商品单价
     */
    @TableField("d_price")
    private String price;

    /**
     * 主订单外键
     */
    @TableField("fk_orderId")
    private Integer orderId;


}
